package com.lwq.cocos;
import com.google.gson.annotations.Expose;
import com.lwq.util.Constance;

public class CCObject {
	@Expose private int Type = 0;
	@Expose private String Name = null;
	@Expose private String TreeName = null;
	
	public CCObject(String name) {
		Name = name;
		setType(Constance.OBJECT_TYPE);
	}
	
	public String getTreeName() {
		return TreeName;
	}

	public int getType() {
		return Type;
	}

	public void setType(int type) {
		Type = type;
		if(Type == Constance.DIRECTOR_TYPE){
			TreeName = Name+" "+Constance.bracket(Constance.DIRECTOR_LABLE);
		}else if(Type == Constance.SCENE_TYPE){
			TreeName = Name+" "+Constance.bracket(Constance.SCENE_LABLE);
		}else if(Type == Constance.MENU_TYPE){
			TreeName = Name+" "+Constance.bracket(Constance.MENU_LABLE);
		}else if(Type == Constance.SPRITE_TYPE){
			TreeName = Name+" "+Constance.bracket(Constance.SPRITE_LABLE);
		}else if(Type == Constance.LAYOUT_TYPE){
			TreeName = Name+" "+Constance.bracket(Constance.LAYOUT_LABLE);
		}else if(Type == Constance.NODE_TYPE){
			TreeName = Name+" "+Constance.bracket(Constance.NODE_LABLE);
		}else{
			TreeName = Name;
		}
	}

	public String getName() {
		return Name;
	}

	public void setTreeName(String treeName) {
		TreeName = treeName;
	}



	public String getsName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}
	
	public void init(){
		
	}
}
